import request from '../utils/request'
export interface Car{
    PlaceStartTime :string;
	NickName       :string;
    UserName :string;
	Enc            :string;
	PlaceStopTime  :string;
	CreateTime     :string;
	ID             :number;
	NumberPlate    :string;
	UpdateTime     :string;
	UserID         :number;
	IsOutBound     :string;
	IsPlay         :string;
	PlaceMemory    :number;
}
export const MyList = (query:{}) => {
    return request({
        url: '/car/MyList',
        method: 'post',
        data:query
    });
};  

export const OutBoud = (query:number) => {
    return request({
        url: '/car/OutBoud?id='+query,
        method: 'get'
    });
};  
export const List = (query:{}) => {
    return request({
        url: '/car/List',
        method: 'post',
        data:query
    });
};  
export const Update = (data:Car) => {
    return request({
        url: '/car/Update',
        method: 'post',
        data:data
    });
};
export const Add = (data:Car) => {
    return request({
        url: '/car/Add',
        method: 'post',
        data:data
    });
};

export const DeleteCar = (id:number) => {
    return request({
        url: '/car/Del?id='+id,
        method: 'post'
    });
};
